package pkg

import (
	"api/initialize"
	"goods_srv/goods"
)

//用于链接grpc

func GoodsConnectServer() (goods.GoodsClient, error) {
	host, port := initialize.FindGoodsServer()
	client, err := GoodsClient(host, port)
	if err != nil {
		panic(err)
		return nil, err
	}
	return client, nil
}
